public class Main {
    public static void main(String[] args) {
        // 1. 构建责任链：组长→经理→HR
        Approver teamLeader = new TeamLeader();
        Approver manager = new Manager();
        Approver hr = new HR();

        teamLeader.setNextApprover(manager);
        manager.setNextApprover(hr);

        // 2. 提交不同天数的请假申请
        teamLeader.handleRequest(2);  // 组长处理
        teamLeader.handleRequest(5);  // 经理处理
        teamLeader.handleRequest(10); // HR处理
    }
}
